package com.qf.service.impl;

import com.qf.bean.Student;
import com.qf.dao.StudentDao;
import com.qf.dao.StudentDao2;
import com.qf.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 2019/12/4
 * Administrator
 * springboot1204
 * 面向对象面向君  不负代码不负卿
 */
@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentDao studentDao;

    @Autowired
    private StudentDao2 studentDao2;
    @Override
    public List<Student> findstudents() {
       // return studentDao.findAll();
        return studentDao2.findall();
    }
}
